package marsdonne.demo4springData.domains.mongo;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;


@Data
@Document
public class SqlTask2 {

    public enum DbType {
        PgSQL,H2
    }

    @Id
    private ObjectId id;

    public String sql;

    private String periods;
    private String typesArray;
    private Boolean testable;
    private marsdonne.demo4springData.domains.jpa.SqlTask.DbType dbType;

    public SqlTask2(String sql, String periods, String typesArray, Boolean testable, marsdonne.demo4springData.domains.jpa.SqlTask.DbType dbType) {
        this.sql = sql;
        this.periods = periods;
        this.typesArray = typesArray;
        this.testable = testable;
        this.dbType = dbType;
    }
}
